import service from "@/request/index.js";

// 获取列表
export const getTemplateListApi = (dataForm: any) => {
	return service.get('/api/cms/template/details/list', { params: dataForm })
}
// 提交
export const submitTemplateApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.post('/api/cms/template/details/edit', dataForm)
	} else {
		return service.post('/api/cms/template/details/add', dataForm)
	}
}
// 获取详情
export const getColumnInfoApi = (id: Number) => {
	return service.get('/api/cms/template/details/info/id=' + id)
}
// 删除
export const delArticlemodelApi = (id: any) => {
	return service.get('/api/cms/template/details/del?id=' + id)
}
// 字典
export const getModelDictApi = (dataForm: any) => {
	return service.get('/api/base/dict/find/dictList', { params: dataForm })
}
